import request from '@/assets/ts/request'

// 获取歌曲详情，传歌曲id，多个用逗号拼接
export const songDetail = (ids: string | number) => {
  return request.get('/song/detail', {
    params: { ids },
  })
}

// 获取歌词，传歌曲id，只能传一个
export const lyric = (id: string | number) => {
  return request.get('/lyric', {
    params: { id },
  })
}

// 获取歌曲播放地址，传歌曲id，多个用逗号拼接
export const songUrl = (id: string | number) => {
  return request.get('/song/url', {
    params: { id },
  })
}
